package com.tiny.cqzcp.service.impl;

import com.tiny.cqzcp.dao.UserOrderDao;
import com.tiny.cqzcp.pojo.UserOrder;
import com.tiny.cqzcp.service.OrderService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author jmz
 */
@Service
public class OrderServiceImpl implements OrderService {

    private UserOrderDao userOrderDao;

    @Autowired
    public OrderServiceImpl(UserOrderDao userOrderDao){
        this.userOrderDao = userOrderDao;
    }

    @Override
    public List<UserOrder> selectByParams(UserOrder userOrder) {
        return userOrderDao.selectByParams(userOrder);
    }

    @Override
    public int updateUserOrder(UserOrder userOrder) {
        return userOrderDao.updateByPrimaryKey(userOrder);
    }
}
